home *** CD-ROM | disk | FTP | other *** search
- /***************************************************************************
- * JCD: A Unix CD program for the Amiga
- * Copyright (C) 1993 John Tillema
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * John Tillema
- * 1810 E. Blacklidge Dr. Apt 201
- * Tucson, AZ 85719 USA
- * jtillema@panda.lpl.arizona.edu
- * After 5/16/93 I can be reached by postal mail at:
- * 14603 NE 174 ST
- * Woodinville WA 98072 USA
- * email ???
- *
- * If you should modify/optimize this code any, please let me know.
- *
- *
- ***********************************************************************/
-
-
- JCD: A Unix style replacement for the AmigaDOS "cd" command
- Version: 1.5
-
- Purpose:
- After working on unix systems for several years, my fingers have
- become used to the familar . and .. that unix (and ms-dos) has.
- So, figured I might as well implement a unix cd (or as close as possible
- to one) on the Amiga. That's what jcd is. I have used it in various
- incarnations for over a year with no troubles so far, and believe
- all the bugs are gone (knock on wood).
-
- Differences with AmigaDOS cd:
- In writing jcd, I had to make several choices on how to make a unix
- action work on the amiga. On unix systems, "cd " takes you to your
- home directory, but Amigas don't generally have this, so I am taking
- the home directory from the environment variable HOME. Another
- problem was "cd /", this normally takes you to the root directory, but
- again Amigas don't have root directories the same as unix, so I chose
- to implement them as taking you to the root directory of the device you
- are currently on. Once hard links are implemented, this could
- conceivably change to be more unix-like. The last choice was how to
- handle "cd /dir". On unix, all the major directies are linked at the
- root directory (eg. usr, dev, etc, bin), so I had two ways this could
- have been done, either "cd :dir" or "cd dir:". I chose the latter as
- that seems more "unix-like" to me... Here's a brief table of differences
- between JCD and AmigaDOS cd:
- JCD AmigaDOS
- cd cd $HOME
- cd . cd
- cd .. cd /
- cd /work cd work:
-
- Installation:
- 1) add setenv HOME "your home dir"
- "your home dir" is where you want the default cd to be, for
- example mine is set to s:
- 2) put jcd in your path
- 3) (optional) alias cd to jcd
- ex. alias cd bin:jcd
-
- Usuage:
- Same as for the normal cd.
-
-
-
-